<!--<template>-->
<!--  <el-dialog v-model="visible" title="Tips" width="500">-->
<!--    <span>添加节点</span>-->
<!--    <el-form :model="addTreeForm" label-width="auto" style="max-width: 600px">-->
<!--      <el-form-item label="pid">-->
<!--        <el-input v-model="addTreeForm.pid" readonly />-->
<!--      </el-form-item>-->
<!--      <el-form-item label="pname">-->
<!--        <el-input v-model="pname" readonly />-->
<!--      </el-form-item>-->
<!--      <el-form-item label="lines">-->
<!--        <el-input v-model="addTreeForm.lines" :rows="4" type="textarea" />-->
<!--      </el-form-item>-->
<!--      <el-form-item label="type">-->
<!--        <el-select v-model="addTreeForm.type" placeholder="Select" size="large" style="width: 240px">-->
<!--          <el-option v-for="item in typeOptions" :key="item" :label="item" :value="item" />-->
<!--        </el-select>-->
<!--      </el-form-item>-->
<!--    </el-form>-->
<!--    <el-button plain @click="commitAdd">提交</el-button>-->
<!--  </el-dialog>-->
<!--</template>-->

<!--<script lang="ts" setup>-->
<!--import { ref } from 'vue';-->

<!--const props = defineProps<{-->
<!--  visible: boolean;-->
<!--  pname: string;-->
<!--  addTreeForm: {-->
<!--    pid: number | null;-->
<!--    lines: string;-->
<!--    type: string;-->
<!--  };-->
<!--  typeOptions: string[];-->
<!--  onCommit: () => void;-->
<!--}>();-->

<!--const dialogVisible = ref(props.visible);-->

<!--const commitAdd = () => {-->
<!--  props.onCommit();-->
<!--  dialogVisible.value = false;-->
<!--};-->
<!--</script>-->

<!--<style scoped>-->
<!--.el-form {-->
<!--  max-width: 600px;-->
<!--}-->
<!--</style>-->
